import Vue from 'vue'
import VueRouter from 'vue-router'
import Cart from '../components/Cart.vue'
import ProductList from '../components/ProductList.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'ProductList',
    component: ProductList
  },
  {
    path: '/cart',
    name: 'Cart',
    component: Cart
  }
]

const router = new VueRouter({
  routes
})

export default router